#!/bin/sh

#android 在liunx编译 ffmpeg
# 1下载 gcc 编译库

docker run --name ssh --restart=always -d -p 222:22 hq/ubuntu16-x86-x64-sshmy supervisord -c /etc/supervisor/supervisord.conf
wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
apt-get install -y unzip homebrew git yasm
unzip android-ndk-r14b-linux-x86_64.zip
cd cd android-ndk-r14b

cat >/etc/profile.d/ndk.sh <<EOF
export NDK_ROOT=$(pwd)
export PATH=$PATH:$NDK_ROOT
EOF
source /etc/profile
vim /etc/hosts
cat /etc/profile.d/ndk.sh
/etc/init.d/networking restart
#git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
git clone https://gitee.com/dreamhai-github/bilibili-ijkplayer.git
git checkout -B latest k0.8.8
cd ../bilibili-ijkplayer
./init-android.sh




140.82.112.3 github.com
199.232.69.194 github.global.ssl.Fastly.net

185.199.108.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
service network-manager restart 